/**
 * 
 */
package top.lcpsky.flashcards.util;

import java.text.SimpleDateFormat;
import java.util.Date;


/**   
 * @ClassName:  Dates   
 * @author: lcp
 * @date:   2020年7月9日 下午1:34:23   
 *     
 * @Copyright: 2020 www.ankept.com Inc. All rights reserved. 
 */
public class Dates {

	/**   
	 * @Title: format   
	 * @param: @param end
	 * @param: @param noLineDate
	 * @param: @return      
	 * @return: Object      
	 * @throws   
	 */
	public static String format(Date end, String noLineDate) {
		return new SimpleDateFormat(noLineDate).format(end);
	}

	/**   
	 * @Title: now   
	 * @param: @return      
	 * @return: Date      
	 * @throws   
	 */
	public static Date now() {
		return new Date();
	}

	/**   
	 * @Title: dateToString   
	 * @param: @param rtn
	 * @param: @return      
	 * @return: String      
	 * @throws   
	 */
	public static String dateToString(Date date) {
		String sDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
		return sDate;
	}

}
